#ifndef DLG_LOGIN_H
#define DLG_LOGIN_H

#include <QDialog>
#include <QMessageBox>
#include <QSqlQuery>
#include "supsql.h"
#include <QPushButton>

namespace Ui {
class dlg_login;
}

class dlg_login : public QDialog
{
    Q_OBJECT

public:
    explicit dlg_login(QWidget *parent = 0);
    ~dlg_login();

signals:
    void loginSucceeded(QString);

private slots:
    void on_btn_StuLogin_clicked();

    void on_btn_TechLogin_clicked();

    void on_btn_LoginExit_clicked();

private:
    Ui::dlg_login *ui;
    void login(QString s);
};

#endif // DLG_LOGIN_H
